/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jas.bank;

/**
 *
 * @author Asger
 */
public class AccountImpl implements Account {
    
    private String name;
    private double balance;

    public AccountImpl(String name) {
        this.name = name;
        this.balance = 0;
    }

    public String getName() {
        return name;
    }

    public double getBalance() {
        return balance;
    }

    public void deposit(Double amount) {
        balance += amount;
    }

    public void withdraw(Double amount) {
        balance -= amount;
    }

}
